package com.springboot.service;

import java.math.BigDecimal;
import java.util.List;

import com.springboot.model.po.Coupon;
import com.springboot.model.po.UserCoupon;

public interface UserCouponService {
	public List<Integer> listUserCoupon(String userId);
	public BigDecimal useCoupon(Integer typeId , Integer orderId);
	public List<UserCoupon> listUserCouponByOrderTotal(String userId , BigDecimal orderTotal);
	public Integer updateUserCounpon(String userId , Integer typeId);
	public Integer getUserCouponQuantity(String userId , Integer typeId);
	public Integer saveUserCoupon(String userId,Integer typeId);
	public List<UserCoupon> listUserCouponAll(String userId);
	public Integer hasUserCoupon(String userId , BigDecimal orderTotal);
}
